<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$q = $_GET["q"];
include '../../../../readcookie.php';
include '../../../../db.php';
$sql = "SELECT * FROM Tag WHERE tagID = '" . $q . "'";
$result = mysql_query($sql);

while ($row = mysql_fetch_array($result)) {
    $tid = $row['tagID'];
    $tname = $row['tagNAME'];
    $theader = $row['tagHEADER'];
    $tfooter = $row['tagFOOTER'];

    echo'
  <form action="plugin/base/cms/tags/updatetag.php"
   method="post" display:none>

<TABLE BORDER="0">
<TR style="visibility: hidden">
    <TD>ID:</TD>
    <td>  <INPUT TYPE="TEXT" NAME="id" SIZE="70" VALUE="',$tid,'" /> </td>

  </TR>
<TR>
    <TD>Publish:</TD>
    <TD><input type="text" value="yes" name="publish" /></TD>
  </TR>
  <TR>
    <TD>Tag Name:</TD>
    <TD>
      <INPUT TYPE="TEXT" NAME="name" SIZE="70" VALUE="',$tname,'" />
    </TD>
  </TR>
    <TD>Header:</TD>
    <TD><textarea rows="5" cols="80" name="header" wrap="physical">',$theader,'</textarea> </TD>
  </TR>
  <TR>
    <TD>Footer:</TD>
    <TD><textarea rows="5" cols="80" name="footer" wrap="physical">',$tfooter,'</textarea> </TD>
  </TR>

</TABLE>
<P><INPUT TYPE="SUBMIT" VALUE="Save" NAME="B1">
<INPUT TYPE="SUBMIT" VALUE="Delete" NAME="B2"></P>
</form>
    ';
}

?>
